<project-header class="top-header"></project-header>
<project-page>

  <!-- Middle section -->
  <div class="middle-section">
    <div id="scrollable-content" class="middle-container has-scroll">
      <div class="middle-header header-light">
        <div class="container-fluid">
          <div class="page-header page-header-bleed-right page-header-bleed-left">
            <h1>Pods</h1>
          </div>
          <alerts alerts="alerts"></alerts>
          <div ng-if="!renderOptions.showGetStarted" class="row data-toolbar">
            <div class="col-sm-7">
              <project-filter></project-filter>
            </div>
          </div>
        </div>
      </div><!-- /middle-header-->
      <div class="middle-content">
        <div class="container-fluid">
          <div class="row">
            <div class="col-md-12 gutter-top">
              <table class="table table-bordered table-hover table-mobile">
                <thead>
                  <tr>
                    <th>{{'Name' | translate}}</th>
                    <th>{{'Status' | translate}}</th>
                    <th>{{'ContainersReady' | translate}}</th>
                    <th>{{'ContainerRestarts' | translate}}</th>
                    <th>{{'Age' | translate}}</th>
                  </tr>
                </thead>
                <tbody ng-if="(pods | hashSize) == 0">
                  <tr><td colspan="5"><em>{{emptyMessage}}</em></td></tr>
                </tbody>
                <tbody ng-repeat="pod in pods | orderObjectsByDate : true">
                  <tr>
                    <td data-title="Name">
                      <a href="{{pod | navigateResourceURL}}">{{pod.metadata.name}}</a>
                      <span ng-if="pod | isTroubledPod">
                        <pod-warnings pod="pod"></pod-warnings>
                      </span>
                    </td>
                    <td data-title="Status">
                      <div row class="status">
                        <status-icon status="pod.status.phase" disable-animation></status-icon>
                        <span flex>{{pod.status.phase}}</span>
                      </div>
                    </td>
                    <td data-title="Ready">{{pod | numContainersReady}}/{{pod.spec.containers.length}}</td>
                    <td data-title="Restarts">{{pod | numContainerRestarts}}</td>
                    <td data-title="Age"><relative-timestamp timestamp="pod.metadata.creationTimestamp" drop-suffix="true"></relative-timestamp></td>
                  </tr>
                </tbody>
              </table>
            </div><!-- /col-* -->
          </div>
        </div>
      </div><!-- /middle-content -->
    </div><!-- /middle-container -->
  </div><!-- /middle-section -->
</project-page>
